/**
 * 分页查询函数
 * @param {查询页数} page 
 * @param {查询条数} limit 
 * @param {总数据数} total 
 * @returns 
 */
exports.limitCallback = function (page, limit, total) {
    if (page <= 1) {
        return parseInt((total + limit - 1) / limit - 1)
    }else{
        return (page*limit)-limit
    }
}